package com.suning.sawp.web.exception;

/**
 * 客户端接口调用异常
 */
public class MobileException extends Exception {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 6994530210973700934L;

	/**
	 * 异常编码
	 */
	private final String errorCode;

	/**
	 * 构造方法
	 * 
	 * @param errorCode
	 *            错误码
	 */
	public MobileException(String errorCode) {
		this.errorCode = errorCode;
	}

	public MobileException(String errorCode, String message, Throwable cause) {
		super(message, cause);
		this.errorCode = errorCode;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public MobileException(String errorCode, String message) {
		super(message);
		this.errorCode = errorCode;
	}
}